package com.samuel.learning.design.pattern.strategy.pay;

public class OrderE {

    private Integer id;
    private String uid;
    private Double amout;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Double getAmout() {
        return amout;
    }

    public void setAmout(Double amout) {
        this.amout = amout;
    }

    public OrderE(Integer id, String uid, Double amout) {
        this.id = id;
        this.uid = uid;
        this.amout = amout;
    }

    public PayStatusE pay(PayTypeEnum payTypeEnum){
        return payTypeEnum.getPayMent().pay(this.uid,this.amout);
    }

}
